| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

GamepadDeviceManager.h
1 // GamepadDeviceManager.h
3 //
5
6 namespace nkInputs
7 {
14 class GamepadDeviceManager final : public nkCommon::MaybeSingletonClass<GamepadDeviceManager>
15 {
16 public :
17
18 // Getters
22 System* getSystem () const ;
23
24 // Memory management
31 GamepadDevice* createOrRetrieve (nkMemory::StringView name) ;
43 GamepadDevice* record (nkMemory::StringView name, nkMemory::UniquePtr<GamepadDevice> device) ;
50 GamepadDevice* get (nkMemory::StringView name) const ;
59 GamepadDevice* getByIndex (unsigned int index) const ;
66 void rename (nkMemory::StringView currentName, nkMemory::StringView newName) ;
72 void erase (nkMemory::StringView name) ;
79 nkMemory::UniquePtr<GamepadDevice> relinquish (nkMemory::StringView name) ;
80 } ;
81 }
nkInputs::GamepadDeviceManager::createOrRetrieve
GamepadDevice * createOrRetrieve(nkMemory::StringView name)
nkInputs::GamepadDeviceManager::erase
void erase(nkMemory::StringView name)
nkInputs::GamepadDeviceManager::relinquish
nkMemory::UniquePtr< GamepadDevice > relinquish(nkMemory::StringView name)
nkInputs::GamepadDeviceManager
Manages gamepad devices available in a System.
Definition: GamepadDeviceManager.h:15
nkInputs::GamepadDeviceManager::record
GamepadDevice * record(nkMemory::StringView name, nkMemory::UniquePtr< GamepadDevice > device)
nkInputs::GamepadDevice
A device abstracting a gamepad controller.
Definition: GamepadDevice.h:22
nkInputs::GamepadDeviceManager::rename
void rename(nkMemory::StringView currentName, nkMemory::StringView newName)
nkInputs::System
Main interface with the component.
Definition: System.h:38
nkInputs
Encompasses all API of component NilkinsInputs.
Definition: GamepadDeviceButton.h:7
nkMemory::UniquePtr
Smart pointer owning the object instance it encapsulates.
Definition: UniquePtr.h:17
nkInputs::GamepadDeviceManager::get
GamepadDevice * get(nkMemory::StringView name) const
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkInputs::GamepadDeviceManager::getSystem
System * getSystem() const
nkInputs::GamepadDeviceManager::getByIndex
GamepadDevice * getByIndex(unsigned int index) const